//Take care of HTML Model Stuff here

function Model_init()
{
    Model_populateUBoat();
    Model_populateMenubar();
    Model_populateSidebar();
}

function Model_populateMenubar(){
$('menuNeptuner').setAttribute('title' , "Click for menu.");
$('barMenu').innerHTML =
    "<ul id='menuUBoat' class='menu'>" +
        "<li><a class='sub'>File</a>" +
        "<ul>" +
        "<li><a onClick='UBoat_saveFile()' role='menuitem'>Save</a></li>" +
        "<li><a class='sub'>Export</a>" +
        "<ul>" +
        "<li onClick='exportNotes()'><a>Notes</a></li>" +
        "<li onClick='exportBookmarks()'><a>Bookmarks</a></li>" +
        "<li onClick='exportCode()'><a>Code</a></li>" +
        "</ul>" +
        "</li>" +
        "</ul>" +
        "</li>" +
        "<li><span class='sub'><a class='sub' href='#'>View</a>" +
        "<ul>" +
        "<li><a role='menuitem' onClick='toggleInlineNotes()'>Hide All Notes</a></li>" +
        "<li><a role='menuitem' onClick='showAllHidden()'>Show All Notes</a></li>" +
        "<li><span class='last'><a onClick='toggleLineNumbers()'>Line Numbers</a></span></li>" +
        "</ul>" +
        "</span></li>" +
        "<li><span class='sub'><a class='sub'>Edit</a>" +
        "<ul>" +
        "<li><a role='menuitem' class='sub'>Remove</a>" +
        "<ul role='menu'>" +
        "<li><a role='menuitem' onClick='removeBookmarks()'>Bookmarks</a></li>" +
        "<li><span class='last'><a onClick='removeScraps()'>Scraps</a></span></li>" +
        "</ul>" +
        "</li>" +
        "</ul>" +
        "</span></li>" +
    "</ul>";
}

function Model_populateSidebar(){
    $('paneSidebar').innerHTML =
        "	<span id='sideBarTab'><img src='" +sUBoatHome+ "slidea.png' alt='sideBar' title='sideBar' onclick='toggleSidebar()'/></span>"+
"	<div id='sideBarContents'>"+
"		<div id='sideBarContentsInner'>"+
"			<form id=formGotoLine>"+
"			Line: <input type='text' size=5 id=inpLine>"+
"			<input type='button' value='Goto' onclick='gotoLine()'>"+
"			</form>"+
"			<form id=formScrap>"+
"			<textarea cols='30' name='comments' rows='3' id='textareaScrap' class='notedited'>What's on your mind?</textarea>"+
"			<BR/>"+
"			Add To:"+
"			<input type='button' value='Scrapbook ' onclick='addScrap()'>"+
"			<input type='button' value='Line' onclick='addInlineNote()'>"+
"			<br/>"+
"			</form>"+
"		</div>"+
"	</div>";
}

function Model_populateUBoat(){
    $('barTitle').innerHTML = "<img id='menuNeptuner' src='" + sUBoatHome + "neptunerIcon.jpg'></img>"+
        "<span id=DocFilename>"+sFilename+"</span>";
    $('barBookmarks').innerHTML= "<img src='" + sUBoatHome + "bookmark.png'>Bookmarks</img>";
    $('barScrapbook').innerHTML = "<img src='" + sUBoatHome + "note.png'>Scrapbook</img>";
}


